package com.cc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author CC
 * @version 1.0
 * @description: TODO
 * @date 2025/6/16 14:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book implements Serializable {
    //  图书编号
    private int bookID;

    //  图书名称
    private String bookName;

    //  作者
    private String author;

   //  出版社时间
    //jsonFormat格式化日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date publishDate;

    //  价格
    private BigDecimal price;

    //  图书类别
    private BookType bookType;
}
